const PROFILE = {
    id: '',
    avatar: '',
    nickname: '',
    account: '',
    mobile: '',
    token: ''
}

export default {
    namespaced: true,
    state() {
        return {
            profile: { ...PROFILE }
        }
    },
    mutations: {
        setUser(state, payload) {
            state.profile = payload
        },
        resetUser(state) {
            state.profile = { ...PROFILE }
        }
    }
}